package com.bosssoft.trainee.nontax.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bosssoft.trainee.nontax.common.Result;
import com.bosssoft.trainee.nontax.entity.po.Role;
import com.bosssoft.trainee.nontax.entity.po.UserRole;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author MaYunFei
 * @ProjectName RBAC_BOSS
 * @Description TODO
 * @time 2022/6/13 15:51
 */
public interface IRoleService extends IService<Role> {

    void changePermission(@RequestBody Role role);

    List<UserRole> getUserRoleByUserId(Integer id);

    Result<?> findPage(Integer pageNum, Integer pageSize, String search);
}
